//
//  UIView+Frame.h
//  JuJuSports
//
//  Created by Jame on 15-3-31.
//  Copyright (c) 2015年 Cache. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Frame)

//获取view的高
- (CGFloat)viewHeight;
//获取view的宽
- (CGFloat)viewWidth;
//获取view的左上角x
- (CGFloat)viewX;
//获取view的y
- (CGFloat)viewY;

@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat right;
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;

@property (nonatomic) CGPoint origin;
@property (nonatomic) CGSize size;

- (void)topAdd:(CGFloat)add;
- (void)leftAdd:(CGFloat)add;
- (void)widthAdd:(CGFloat)add;
- (void)heightAdd:(CGFloat)add;


@end
